package me.wpf.DesignMode.cor;

/**
 * Description: 处理请求的接口
 *
 * @author 王朋飞
 * @create 2019/8/12
 */
public interface Ratify {
    /**
     * 处理请求
     *
     * @param chain
     * @return
     */
    public Result deal(Chain chain);

    /**
     * 接口描述：对request和Result封装，用来转发
     */
    interface Chain {
        // 获取当前request
        Request request();

        // 转发request
        Result proceed(Request request);
    }

}
